package cn.tedu.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class Order implements Serializable {
    private static final long serialVersionUID = 3930779839810328035L;

    private Integer id;
    private Integer uid;
    private String recvName;
    private String recvDistrict;
    private String recvAddr;
    private String recvZip;
    private String recvPhone;
    private String recvTel;
    private Integer totalPrice;
    private Integer status;
    private String createdUser;
    private Date createdTime;
    private String modifiedUser;
    private Date modifiedTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Order order = (Order) o;
        return Objects.equals(id, order.id) &&
                Objects.equals(uid, order.uid) &&
                Objects.equals(recvName, order.recvName) &&
                Objects.equals(recvDistrict, order.recvDistrict) &&
                Objects.equals(recvAddr, order.recvAddr) &&
                Objects.equals(recvZip, order.recvZip) &&
                Objects.equals(recvPhone, order.recvPhone) &&
                Objects.equals(recvTel, order.recvTel) &&
                Objects.equals(totalPrice, order.totalPrice) &&
                Objects.equals(status, order.status) &&
                Objects.equals(createdUser, order.createdUser) &&
                Objects.equals(createdTime, order.createdTime) &&
                Objects.equals(modifiedUser, order.modifiedUser) &&
                Objects.equals(modifiedTime, order.modifiedTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, uid, recvName, recvDistrict, recvAddr, recvZip, recvPhone, recvTel, totalPrice, status, createdUser, createdTime, modifiedUser, modifiedTime);
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", uid=" + uid +
                ", recvName='" + recvName + '\'' +
                ", recvDistrict='" + recvDistrict + '\'' +
                ", recvAddr='" + recvAddr + '\'' +
                ", recvZip='" + recvZip + '\'' +
                ", recvPhone='" + recvPhone + '\'' +
                ", recvTel='" + recvTel + '\'' +
                ", totalPrice=" + totalPrice +
                ", status=" + status +
                ", createdUser='" + createdUser + '\'' +
                ", createdTime=" + createdTime +
                ", modifiedUser='" + modifiedUser + '\'' +
                ", modifiedTime=" + modifiedTime +
                '}';
    }

    public Order(Integer id, Integer uid, String recvName, String recvDistrict, String recvAddr, String recvZip, String recvPhone, String recvTel, Integer totalPrice, Integer status, String createdUser, Date createdTime, String modifiedUser, Date modifiedTime) {
        this.id = id;
        this.uid = uid;
        this.recvName = recvName;
        this.recvDistrict = recvDistrict;
        this.recvAddr = recvAddr;
        this.recvZip = recvZip;
        this.recvPhone = recvPhone;
        this.recvTel = recvTel;
        this.totalPrice = totalPrice;
        this.status = status;
        this.createdUser = createdUser;
        this.createdTime = createdTime;
        this.modifiedUser = modifiedUser;
        this.modifiedTime = modifiedTime;
    }

    public Order() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getRecvName() {
        return recvName;
    }

    public void setRecvName(String recvName) {
        this.recvName = recvName == null ? null : recvName.trim();
    }

    public String getRecvDistrict() {
        return recvDistrict;
    }

    public void setRecvDistrict(String recvDistrict) {
        this.recvDistrict = recvDistrict == null ? null : recvDistrict.trim();
    }

    public String getRecvAddr() {
        return recvAddr;
    }

    public void setRecvAddr(String recvAddr) {
        this.recvAddr = recvAddr == null ? null : recvAddr.trim();
    }

    public String getRecvZip() {
        return recvZip;
    }

    public void setRecvZip(String recvZip) {
        this.recvZip = recvZip == null ? null : recvZip.trim();
    }

    public String getRecvPhone() {
        return recvPhone;
    }

    public void setRecvPhone(String recvPhone) {
        this.recvPhone = recvPhone == null ? null : recvPhone.trim();
    }

    public String getRecvTel() {
        return recvTel;
    }

    public void setRecvTel(String recvTel) {
        this.recvTel = recvTel == null ? null : recvTel.trim();
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(String createdUser) {
        this.createdUser = createdUser == null ? null : createdUser.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getModifiedUser() {
        return modifiedUser;
    }

    public void setModifiedUser(String modifiedUser) {
        this.modifiedUser = modifiedUser == null ? null : modifiedUser.trim();
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
}